package com.ruoyi.report.controller.report;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.report.domain.HanZaiCustomerCallDetails;
import com.ruoyi.report.service.HanZaiCustomerCallDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: 憨憨爱崽崽
 * Name: HanZaiCustomerCallDetailsController 客户来访来电明细报表
 * Date: 2022/4/11
 * Time: 20:36
 **/
@RestController
@RequestMapping("/customer_call_details")
public class HanZaiCustomerCallDetailsController extends BaseController {
    @Autowired
    private HanZaiCustomerCallDetailsService callDetailsService;

    @RequestMapping("/details/list")
    public TableDataInfo getCustomerCallDetailsList(HanZaiCustomerCallDetails callDetails) {
        startPage();
        List<HanZaiCustomerCallDetails> callDetailsList = callDetailsService.selectCustomerCallDetailsList(callDetails);
        System.out.println(callDetailsList);
        return getDataTable(callDetailsList);
    }
}
